import Vue from 'vue'
import Router from 'vue-router'
import App from './App.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'app',
      redirect: '/officialCenter',
      component: App
    },
    {
      path: '/officialCenter',
      name: 'officialCenter',
      component: () => import('./views/OfficialCenter')
    },
    {
      path: '/teachCenter',
      name: 'teachCenter',
      component: () => import('./views/TeachCenter')
    }
  ]
})
